package com.educatioin.manage.web.pointreward.repository;

import com.educatioin.manage.web.pointreward.po.PointRewardProductPo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created by zhangchen on 2018/3/5.
 */
@RepositoryRestResource(collectionResourceRel = "pointRewardProductRepository", path = "pointRewardProductRep")
public interface PointRewardProductRepository extends JpaSpecificationExecutor<PointRewardProductPo>, PagingAndSortingRepository<PointRewardProductPo, Long> {
    List<PointRewardProductPo> findByCode(String code);
}
